package mapper.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.common.BaseMapper;

public interface RoleFunMapper<T> extends BaseMapper<T> {
	@Select("select * from sys_rolefun WHERE roleid=#{un} ")
	@Results({
		@Result(id=true,property="id",column="id",javaType=String.class),
		@Result(property="roleid",column="roleid",javaType=String.class),
		@Result(property="funid",column="funid",javaType=String.class)
	})
	List<Map> getByRoleid(@Param("un")String rid);

	void saveRoleFun(List<Map> list);

	void delRoleFun(String roleid);
}
